package com.government.tag.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.government.common.annotation.Excel;
import com.government.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.ArrayList;
import java.util.List;

/**
 * 标签类型对象 t_tag_type
 * 
 * @author system
 * @date 2023-09-13
 */
@TableName("t_tag_type")
public class TagType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 标签分类id */
    private Long tagTypeId;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String name;

    /** 上级分类 */
    private Long parentId;

    /** 颜色 */
    @Excel(name = "颜色")
    private String color;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;


    public void setTagTypeId(Long tagTypeId) 
    {
        this.tagTypeId = tagTypeId;
    }

    public Long getTagTypeId() 
    {
        return tagTypeId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setColor(String color) 
    {
        this.color = color;
    }

    public String getColor() 
    {
        return color;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("tagTypeId", getTagTypeId())
            .append("name", getName())
            .append("parentId", getParentId())
            .append("color", getColor())
            .append("sort", getSort())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }

}
